<?php

namespace app\admin\controller\meter;

use app\common\controller\Backend;

use think\Controller;
use think\Request;

/**
 * 仪表类型
 *
 * @icon fa fa-circle-o
 */
class Project extends Backend
{
    
    /**
     * MeterProject模型对象
     */
    protected $model = null;

    public function _initialize()
    {
        parent::_initialize();
        $this->model = model('MeterProject');
    }

    public function add()
    {
        return parent::create('form');
    }

    public function edit($ids = NULL)
    {
        return parent::modify($ids,'form');
    }

    public function del($ids = null){
        $where = array(
            'id' => array('in',$ids)
        );
        parent::delete($where);
    }
}
